package com.cdgeekcamp.redas.wechat.entity;

import java.util.ArrayList;

/**
 * 微信菜单实体
 */
public class WeChatMenu {
    private String name;
    private String type;
    private String key;
    private ArrayList<WeChatMenu> sub_button;

    public WeChatMenu() {
    }

    public WeChatMenu(String name, ArrayList<WeChatMenu> sub_button) {
        this.name = name;
        this.sub_button = sub_button;
    }

    public WeChatMenu(String name, String type, String key) {
        this.name = name;
        this.type = type;
        this.key = key;
    }

    public WeChatMenu(String name, String type, String key, ArrayList<WeChatMenu> sub_button) {
        this.name = name;
        this.type = type;
        this.key = key;
        this.sub_button = sub_button;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public ArrayList<WeChatMenu> getSub_button() {
        return sub_button;
    }

    public void setSub_button(ArrayList<WeChatMenu> sub_button) {
        this.sub_button = sub_button;
    }

    public void addValue(WeChatMenu weChatMenu){
        this.sub_button.add(weChatMenu);
    }
}
